import Cookie from 'js-cookie'
export const isLogin = () => !!Cookie.get('token');
export const getToken = () => Cookie.get('token');
export const  removeUserInfo = () => {
  Cookie.remove('token');
  Cookie.remove('userInfo');
  Cookie.remove('role');
}